package org.ccay.excel.exporter.service.impl.internal;

import java.io.Serializable;

import org.ccay.excel.exporter.ExportTaskRequest;
import org.ccay.excel.exporter.IExcelExportContext;
import org.ccay.excel.meta.ExcelMeta;
import org.ccay.excel.meta.SheetMeta;

/**
 * 导出时上下文信息	
 * @author chaowangbang
 * @since 2013-6-17
 */
public class ExcelExportContext implements Serializable,IExcelExportContext{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	/**
	 * 导出请求
	 */
	private ExportTaskRequest request;
	
	/** 当前正在处理的Sheet **/
	private SheetMeta sheetMeta;
	
	private ExcelMeta excelMeta;
	
	public ExcelExportContext(ExportTaskRequest request){
		this.request=request;
	}
	
	/**
	 * 得到导出请求信息
	 */
	public ExportTaskRequest getRequest() {
		return this.request;
	}

	public ExcelMeta getExcelMeta() {
		return this.excelMeta;
	}

	public void setExcelMeta(ExcelMeta excelMeta) {
		this.excelMeta=excelMeta;
	}
	
	public SheetMeta getCurrentSheet() {
		return this.sheetMeta;
	}

	public void setCurrentSheet(SheetMeta sheetMeta) {
		this.sheetMeta=sheetMeta;
	}

}
